﻿using System.Web.Mvc;
using Nop.Web.Framework.Security;
using Nop.Core.Domain.Activity;
using Nop.Web.Models.Activity;
using Nop.Core;

namespace Nop.Web.Controllers
{
    public partial class HomeController : BasePublicController
    {
        #region Fields

        private readonly ActivitySettings _activitySettings;
        private readonly IWebHelper _webHelper;

        #endregion

        #region Constructors

        public HomeController(IWebHelper webHelper, ActivitySettings activitySettings)
        {
            this._webHelper = webHelper;
            this._activitySettings = activitySettings;
        }

        #endregion

        [NopHttpsRequirement(SslRequirement.No)]
        public ActionResult Index()
        {
            ActivityModel activityModel = new ActivityModel();
            activityModel.HomeVtickerCategoryName = this._activitySettings.HomePageRightVtickerCategoryName;
            activityModel.HomeVtickerCategoryUrl = this._activitySettings.HomePageVtickerCategoryUrl;
            activityModel.HomeVtcikerCategoryAdsBannerUrl = this._activitySettings.HomePageVtcikerCategoryAdsBannerUrl;


            return View(activityModel);
        }
    }
}
